<template>
  <view>
    <view class="space-pre-wrap" v-if="type === 'text'">{{ content }}</view>
    <uv-parse v-else :content="content"></uv-parse>
  </view>
</template>

<script>
export default {
  name: 'viewContent',
  // content=内容
  // type=类型 text=普通文本 默认富文本
  props: {
    content: {
      type: String,
      default: '',
    },
    type: {
      type: String,
      default: '',
    },
  },
  data() {
    return {
      show: false,
    }
  },
  methods: {},
}
</script>

<style lang="scss" scoped></style>
